package com.life.muyu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.life.muyu.model.News;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface NewsService extends IService<News> {
    List<News> getNewsWithCondi(Integer pageNo) throws Exception;
    void addNews(MultipartFile newsCover, News toCompNews) throws Exception;
    void deleteNews(int[] ids) throws Exception;
    News getNewsById(Integer id) throws Exception;
    void updateNews(MultipartFile newsCover, News news) throws Exception;
}
